package com.foreknow.demo3;

/**
 * 有返回值类型的方法
 */

public class TestMethod5 {
    public static int A(int a){
        return a;
    }
    public static String B(String name){
        return name;
    }
    public static int[] C(){
        int[] array = {1,2,3,4,5};
        return array;
    }
    public static void main(String[] args) {
        int a = A(15);
        System.out.println(a);
        String name = B("a");
        System.out.println(name);
        int[] arr = C();
        for (int i = 0;i<arr.length;i++){
            System.out.println(arr[i]);
        }
    }
}



